/*
 * GMMResult.java
 * Created on 12 oct. 2008
 *
 * Glacéo Internet Platform
 * http://sourceforge.net/projects/chm/
 *
 * Copyright (c) 2005-2009, Jens and Jan Janke (VirtualHockey Project)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.hockeo.vhbase.seasoncycle.movemaking;


import java.util.List;

import com.hockeo.vhbase.data.dao.club.GClub;
import com.hockeo.vhbase.data.dao.match.GMatch;

/**
 * Result of a move-making execution.
 *
 * @version $Id$
 * @author jjanke
 */
public class GMMResult
{
  private GClub        d_club;
  private List<GMatch> d_listMatches;
  private int[]        d_anGoalsToPlace;
  private long         d_lExecTime;

  /**
   * Creates a new GMMResult.
   *
   * @param club the club for which the move-making has been done
   * @param listMatches the matches for which moves have been prepared
   * @param anGoals the goals that should be placed for the different matches
   * @param lExecTime the execution time of the move-making process in ms
   */
  GMMResult( final GClub club, final List<GMatch> listMatches, final int[] anGoals, final long lExecTime )
  {
    d_club = club;
    d_listMatches = listMatches;
    d_anGoalsToPlace = anGoals;
    d_lExecTime = lExecTime;
  }

  public boolean hasMatches()
  {
    return !d_listMatches.isEmpty();
  }

  public final GClub getClub()
  {
    return d_club;
  }

  public final List<GMatch> getMatches()
  {
    return d_listMatches;
  }

  public final int[] getGoalsToPlace()
  {
    return d_anGoalsToPlace;
  }

  public final long getExecTime()
  {
    return d_lExecTime;
  }
}
